package com.ruoyi.invoice.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.List;

/**
 * 发票凭证模版对象 invoice_template
 * 
 * @author ruoyi
 * @date 2025-03-05
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("invoice_template")
public class InvoiceTemplate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(type = IdType.AUTO)
    private Long templateId;

    /** 模版编码 */
    private String stencilCoding;

    /** 模版名称 */
    private String templateName;

    /** 凭证字ID */
    private Long wordId;

    /** 业务类型ID */
    private Long businessTypeId;

    /** 借方科目名称 */
    private String lendSubjectName;

    /** 贷方科目名称 */
    private String loanSubjectName;

    /** 摘要名称 */
    private String summaryName;

    @TableField(exist = false)
    private List<InvoiceProducts> invoiceTemplateDetailList;

}
